package com.situ.shoplook.common.model;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * 功能：规格组
 *
 * @author 千堆雪
 * @version 1.0.0
 * <p>
 * created by 千堆雪 on 2024/8/25, last modified by 千堆雪 on 2024/8/25
 */
@Getter
@Setter
@ToString
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
public class SpecGroup implements Serializable {
    @EqualsAndHashCode.Include
    private Integer id;
    private String name;//规格组编号
    private String description;
    private List<SpecGroupItem> specGroupItems;

    @Getter
    @Setter
    @ToString
    @EqualsAndHashCode(onlyExplicitlyIncluded = true)
    public static class SpecGroupItem implements Serializable {
        @EqualsAndHashCode.Include
        private Integer id;
        private String name;//规格名称
        private String value;//规格值
        private String description;//备注
        private Integer specGroupId;//规格组编号
    }
}
